package video

import (
	v1 "babyplan/api/v1"
	"babyplan/middleware"
	"cftgo/cftf/boot/app"
)

type BookMarkRouter struct{}

func (this *BookMarkRouter) InitRouter() {
	api := v1.ApiGroupApp.VideoApiGroup
	app.GetGinEngine().GET("api/v1/babyplant/video/:id", middleware.JwtAuth, api.Video.Info)
	app.GetGinEngine().PUT("api/v1/babyplant/video/:id", middleware.JwtAuth, api.Video.Update)
	app.GetGinEngine().POST("api/v1/babyplant/video/upload", middleware.JwtAuth, api.Video.Upload)
}
